package com.xjh.mange.common.constant;

import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;

/**
 * @auther xjh
 * @create 2021/2/10
 **/
public class IPConst {

    public static String queryIpURL(String ip) {
        return "http://apis.juhe.cn/ip/ipNew?ip=" + ip + "&key=505f755354c397c6f0d9b86b9c23ad79";
    }

    public static String address(String resultJson) {
        JSONObject jsonObject = JSONUtil.parseObj(resultJson);
        Object result1 = jsonObject.get("result");
        return result1.toString();
    }
}
